package com.darly.dlcommon.app;

import androidx.annotation.IntDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Description TODO: 底层封装跳转
 * Package com.darly.dlcommon.app
 * Author fronchdarly
 * Date 2021/3/15 10:38 AM
 * Where: 陕西西安
 * How: 特别一般的公司
 */
public abstract class App {
    public static final int NEXT_PAGE = 0x00000021;
    public static final int BACK_PAGE = 0x00000022;


    /** @hide */
    @IntDef(flag = true, value = {
            NEXT_PAGE,
            BACK_PAGE,
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface ActionModule {}

    /**
     * 返回目标位置的识别码，以及附带的参数集合
     * @param param
     * @param module
     * @return
     */
    public abstract ActionView getActionView(Object param,@ActionModule int module);
}
